<!--  -->
<script setup>
import { useUseStore } from "@/stores/user"
import { useRoute, useRouter } from 'vue-router'
import { onMounted, ref } from "vue";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const route = useRoute();
const userInfo = ref("");
const router = useRouter();

// console.log(JSON.parse(route.query.userinfo));

userInfo.value = JSON.parse(route.query.userinfo);
useUseStore().token = userInfo.value.token;
useUseStore().userInfo = userInfo.value.user;
useUseStore().userId = userInfo.value.user.uid

console.log(userInfo.value.user, "---------------")
console.log(useUseStore().userId, "111111111")
// console.log(useUseStore().userInfo, "=================")
router.push("/shopList")
</script>

<template>
    <h1>验证面板</h1>
</template>

<style scoped lang="scss"></style>
